package com.tg.app.view;

import android.annotation.SuppressLint;
import android.content.Context;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Toast;

import com.tg.app.R;

public class SetSuccessMsgToast {

    public static void show(Context context){
        @SuppressLint("InflateParams") View view= LayoutInflater.from(context).inflate(R.layout.layout_setsuccess,null);
        Toast toast=new Toast(context);
        toast.setDuration(Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.CENTER,0,0);
        toast.setView(view);
        toast.show();
    }

}
